<html><head><title>Account Page</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<?php
include "validate.php";
include "header.php";
?>
<h2>Modify Account</h2>
<h3>Leave blank to not update</h3>
<?php
if (isset($_SESSION["message"]))
{
	echo "<h4><font color = 'red'>" . $_SESSION["message"] . "</font></h4>";
	$_SESSION['message'] = NULL;
	unset($_SESSION['message']);
}
?>
<form action = 'account_modify.php' method = 'post'>
<table name = 'modify'><tr>
<td>New Name:</td>
<td><input type = 'text' name = 'name' /></td>
</tr><tr>
<td>New Password:</td>
<td><input type = 'password' name = 'pwd' /></td>
</tr><tr>
<td>Retype:</td>
<td><input type = 'password' name = 'pwd2' /></td>
</tr><tr>
<td>Current Password:</td>
<td><input type = 'password' name = 'curr' /></td>
</tr></table>
<input type = 'submit' value = 'Update' /></form>
<h3>Front Page</h3>
<form action = 'new_topic.php' method = 'post'>
<table name = 'home'><tr>
<td>Topic:</td>
<td><textarea id = 'front' name = 'topic' rows = '1' columns = '60'></textarea></td>
</tr><tr>
<td>Comments:</td>
<td><textarea id = 'front' name = 'comments' rows = '10' columns = '60'>
</textarea></td></tr></table>
<input type = 'submit' value = 'Create' /></form>
</body></html>
